﻿using UnityEngine;
using UnityEngine.UI;

namespace Code.UI
{
    public class SkillDescUI:MonoBehaviour
    {
        [SerializeField] private Text _skillText;
        [SerializeField] private Image _skillSprite;
        [SerializeField] private Text _skillDescText;

        public void SetData(SkillData skillData) 
        {
            _skillText.text = skillData.Config.Name;
            _skillSprite.sprite = skillData.Config.Icon;
            _skillDescText.text = skillData.Config.Description;
        }
    }
}
